package com.edu.service;

import java.util.List;

import com.edu.entiy.BookType;
import com.edu.entiy.History;
import com.edu.entiy.Page;
import com.edu.utils.PageTool;

public interface BookTypeService {
	//分页查询
	Page<BookType> selectByPage(int currentPage,int pageSize);
	//分页查询
	PageTool<BookType> selectByPage(String currentPage,String pageSize);
	//查找所有图书类型
	List<BookType> selectBookTypes();
	//根据条件查询
	List<BookType> bookTypes(String tid,String typeName);
	//根据图书类型名称查找
	BookType selecBookTypeByTypeName(String typeName);
	//添加图书分类
	int addBookType(String typeName);
	//修改图书分类
	int updateBookType(BookType bookType);
	//删除图书分类
	int deleteBookType(int typeId);
	
}
